const path = require('path');
const _ = require('lodash');

function getRelativePath(filePath, rootPath) {
    const index = filePath.indexOf(`/${rootPath}/`);
    if (index <  0) return '';
    filePath = filePath.substr(index + 1);
    return filePath
}

module.exports = getRelativePath;